package onlinejudge.entity;

/**
 * user用户实体
 */
public class User {

	private int userId;
	private String userName;
	private String passWord;
	private String email;
	private String userImg;
	private int roleId;
	
	public User() {
		super();
	}
	public User(int userId, String userName, String passWord, String email, String userImg, int roleId) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.passWord = passWord;
		this.email = email;
		this.userImg = userImg;
		this.roleId = roleId;
	}

	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassWord() {
		return passWord;
	}
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public int getRoleId() {
		return roleId;
	}
	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}
	public String getUserImg() {
		return userImg;
	}
	public void setUserImg(String userImg) {
		this.userImg = userImg;
	}
	@Override
	public String toString() {
		return "User [userId=" + userId + ", userName=" + userName + ", passWord=" + passWord + ", email=" + email
				+ ", userImg=" + userImg + ", roleId=" + roleId + "]";
	}

//	@Override
//	public String toString() {
//		return "User [userId=" + userId + ", userName=" + userName + ", passWord=" + passWord + ", email=" + email
//				+ ", userImg=" + userImg + ", roleId=" + roleId + "]";
//	}
}
